package com.foolishbird.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.foolishbird.sdk.params.bean.PhoneCodeObj;
import com.foolishbird.sdk.params.bean.RegistObj;
import com.foolishbird.sdk.params.bean.VerifyType;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;


public class SendVerifyReuqestParams extends BaseRequestParams implements Serializable {

    private static final String SERVICE = "get_phone_code";


    @SerializedName("extended_fb")
    private PhoneCodeObj extendedFB = new PhoneCodeObj();

    @Override
    public Object getBusinissJson() {
        return extendedFB;
    }

    public PhoneCodeObj getExtendedFB() {
        return extendedFB;
    }

    public void setExtendedFB(PhoneCodeObj extendedFB) {
        this.extendedFB = extendedFB;
    }



    public SendVerifyReuqestParams() {
    }

    public SendVerifyReuqestParams(String phone) {
        this(phone, VerifyType.PHONE_VERIFY);
    }

    public SendVerifyReuqestParams(String phone, VerifyType type) {
        extendedFB.setPhone(phone);
        extendedFB.setType(type.getValue());

    }

    public SendVerifyReuqestParams(String username, String gameId) {
        extendedFB.setPhone(username);
        extendedFB.setType(VerifyType.USERNAME_VERIFY.getValue());

    }

    @Override
    public String getServiceString() {
        return SERVICE;
    }



}
